﻿// *************************************************************************************************
// Project: RealSense.Light.Core
// Namespace: RealSense.Light.Core
// File: InvalidStatusException.cs  Author: Peter O'Hanlon
// Copyright © Peter O'Hanlon 2014-2015
// Date: 2014/12/29 21:34
// *************************************************************************************************
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace RealSense.Light.Core
{
  /// <summary>
  /// Exception thrown when the RealSense status indicates there was an issue
  /// with a method call.
  /// </summary>
  [Serializable]
  public class InvalidStatusException : Exception
  {
    public InvalidStatusException(string alertMessage, pxcmStatus status)
    {
      Message = alertMessage;
      Status = status;
    }
    public string Message { get; private set; }
    public pxcmStatus Status { get; private set; }
  }
}
